package router

import (
	"es-ad/helper/response"
	"github.com/gin-gonic/gin"
)

type HomeRouters struct {
	Name        string
	RouterGroup *gin.RouterGroup
}

func (mr *HomeRouters) SetName() {
	mr.Name = "/"
}

func (mr *HomeRouters) GetName() string {
	return mr.Name
}

func (mr *HomeRouters) SetGroupName(r *gin.Engine) {
	mr.RouterGroup = r.Group(mr.Name)
}

func (mr *HomeRouters) InitRouters() {
	mr.RouterGroup.POST("/", func(c *gin.Context) {
		response.Success(c, gin.H{"mess": "success ok"})
	})
}
